<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>


<div class="maindiv">
<script type="text/javascript">
function copyCheque(){
	if(!$("#copyCheckbox").is(':checked'))
		return false;
	$('#name').val('${registerObj.firstName} ${registerObj.lastName}');
	$('#contact').val('${registerObj.telephone}');
	$('#email').val('${registerObj.email}');
	$('#address').val('${registerObj.companyAddress}');
	return true;
}
</script>
	<sf:form modelAttribute="chequeContact">
		<h3>Local Cheque Payment</h3>
		<p class="contactpg" style="font-size:14px;">Please make cheque payable to Roxwell Pte Ltd and mail it to:<br/><br/>
		<font style="font-weight:bold;">
		Conference on Fair Employment Practices Secretariat<br/>
		c/o Roxwell Pte Ltd<br/><br/>
		5 Magazine Road, Central Mall<br/>
		#02-01 Singapore 059571<br/>
		</font>
		</p>
		<div style="font-size:14px;"><p>Please note that registration will only be confirmed upon receiving of cheque within 3 working days.</p><br/></div>
		
		<table class="tbl">
			<tbody>
				<tr>
					<td colspan="2">If you require an invoice for payment, please fill in the following information:</td>
				</tr>
				<tr>
					<td colspan="2">
					<input id="copyCheckbox" type="checkbox" onclick="javascript:copyCheque()"> Same as Main Contact Person Information  
					</td>
				</tr>
				<tr>
					<td width="30%">Attention to</td>
					<td><sf:input path="name" size="60" maxlength="200"/><br/><sf:errors path="name"
							cssClass="error" /></td>
				</tr>
				<tr>
					<td>Contact Number</td>
					<td><sf:input path="contact" size="60" maxlength="20" /><br/><sf:errors path="contact"
							cssClass="error" /></td>
				</tr>
				<tr>
					<td>Email Address</td>
					<td><sf:input path="email" size="60" maxlength="200"/><br/> <sf:errors path="email"
							cssClass="error" /></td>
				</tr>
				<tr>
					<td>Mailing Address</td>
					<td><sf:input path="address" size="60" maxlength="200"/><br/> <sf:errors path="address"
							cssClass="error" /></td>
				</tr>
				<tr>
					<td>Sub-BU (if applicable)</td>
					<td><sf:input path="subBu" size="60" maxlength="50"/><br/> <sf:errors path="subBu"
							cssClass="error" /></td>
				</tr>
			</tbody>
		</table>
		<p class="smallerfont"><br/>Please note that upon receipt of invoice, payment must be made within 3 working days. 
		<br/>Registration will only be confirmed upon receiving cheque payment.
		</p>		
		<br>
		<br>
		<div class="butdiv">
			<input type="submit" name="_eventId_back" value="Back"> <input
				type="submit" name="_eventId_next" value="Submit"> <input
				type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}" />
		</div>
	</sf:form>

</div>
